<nz-card style="width:100%;" [nzBordered]="false" [nzTitle]="'数据展示'" [nzExtra]="tableToolbar">
  <ng-content></ng-content>
</nz-card>
<ng-template #tableToolbar>
  <div class="ant-pro-table-toolbar">
    <div class="ant-pro-table-toolbar-option" *ngIf="needAddBtn" style="margin-right: 15px;">
      <button nz-button nzType="primary" (click)="addBtnClick()"><i nz-icon nzType="plus"></i>新增</button>
    </div>
    <div class="ant-pro-table-toolbar-option" *ngIf="needDelBtn" style="margin-right: 15px;">
      <button nz-button nzType="default" (click)="delBtnClick()"><i nz-icon nzType="minus"></i>批量删除</button>
    </div>
    <div class="ant-pro-table-toolbar-option" *ngIf="needImportBtn" style="margin-right: 15px;">
      <nz-upload [nzAction]="importUrl" [(nzFileList)]="fileList"
                 (nzChange)="handleChange($event)">
        <button nz-button nzType="default"><i nz-icon nzType="cloud-upload"></i>导入</button>
      </nz-upload>
    </div>
    <div class="ant-pro-table-toolbar-option" *ngIf="needDownBtn" style="margin-right: 15px;">
      <button nz-button nzType="default" (click)="downBtnClick()"><i nz-icon nzType="download" nzTheme="outline"></i>下载模板
      </button>
    </div>
    <div class="ant-pro-table-toolbar-option" *ngIf="needExportBtn">
      <button nz-button nzType="default" (click)="exportBtnClick()"><i nz-icon nzType="cloud-download"
                                                                       nzTheme="outline"></i>导出
      </button>
    </div>
  </div>
</ng-template>
